package com.chinasofti.io;

import java.io.FileWriter;
import java.io.IOException;

public class Demo07 {
    public static void main(String[] args) throws IOException {
        FileWriter fw =
                new FileWriter("java419\\a.txt");
        //write(int c)
//        fw.write(97);
//        fw.write(98);
//        fw.write(99);

        //write(char[] c)
        // char[] chs = {'a','b','d'};
        // fw.write(chs);

        //write(String s) 写一个字符串
        // fw.write("abcde");
        //write(String s,int off,int len)
        fw.write("abcdefg",1,3);

        fw.close();
    }
}
